package com.younion.common.base;

import java.io.Serializable;

import org.apache.struts2.ServletActionContext;

import com.younion.common.constants.SysConstants;
import com.younion.vo.UserVO;

public abstract class BaseVO implements Serializable {
	
	private Integer userOfCustomerId;
	
	public BaseVO(){
		/*if(getSessionUser().getCustomer() != null){
			userOfCustomerId = getSessionUser().getCustomer().getId();
			filter();
		}*/
	}
	
	
	//public abstract void filter();
	
	public UserVO getSessionUser() {
		return (UserVO) ServletActionContext.getRequest().getSession().getAttribute(
				SysConstants.SESSION_USER);
	}


	public Integer getUserOfCustomerId() {
		return userOfCustomerId;
	}


	public void setUserOfCustomerId(Integer userOfCustomerId) {
		this.userOfCustomerId = userOfCustomerId;
	}

	
	
}
